﻿<h2 class="tab-cont-h2">
        <a href="javascript:;">运单管理</a> > <span>标单操作</span>
    </h2>
    <input type="hidden" id="wstorepage" value="1" />
<div class="tab-container" id="waybillStoreLookCon">
    
</div>
<nav class="page-nav">
        <ul class="pagination" id="storelookldemo">
           
        </ul>
    </nav>

   <!--废标弹框-->
    <div class="modal fade model nopickModel" id="lfpickModel" tabindex="-1" role="dialog">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title" id="">废标处理单</h4>
                </div>
                <div class="modal-body additem additem-store">
                    <h2 class="modal-h2"><a href="javascript:;" class="">废标</a></h2>
                   
                    <div class="modal-store-cont modalStorecont">
                        <form class="modal-store-form">
                        <div class="form-group">
                            <label for="recipient-name" class="control-label" style="text-align:right;">废标原因：</label>
                              <input type="text" class="input" id="lfReason">
                            <!--<select class="form-control select" id="lfReason">
                                <option value="1">原因1</option>
                            </select>-->
                        </div>
                        <div class="group">
                        <label class="l-label">赔 偿 费：</label>
                        <div class="l-area">
                            <label class="l-radio">
                                <input type="radio" value="1" name="store-type-ffmodal" checked="checked">赔偿物流
                            </label>
                            <label class="l-radio">
                                <input type="radio" value="10" name="store-type-ffmodal">赔偿企业
                            </label>
                            <div class="input-group">
                                <div class="input-group-addon">元</div>
                                <input type="text" class="form-control input1" id="fstore-price"  value="0"  placeholder="">
                            </div>
                        </div>
                      </div>
                        <div class="form-group">
                            <label for="message-text" class="control-label" style="vertical-align: top;text-align:right;">详情描述：</label>
                            <textarea class="form-control textarea" id="freasonInfo"></textarea>
                        </div>
                    </form>
                     <div class="modal-footer">
                    <button type="button" class="btn sure" id="ffremarkSubmit">提 交</button>
                    <button type="button" class="btn cancel" data-dismiss="modal">取 消</button>
                    </div>
                    </div>
                </div>
            </div>
        </div>
    </div>


 <!--备注弹框-->
    <div class="modal fade model remarkmodel" id="lremarkModel" tabindex="-1" role="dialog">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title" id="exampleModalLabel">添加备注</h4>
                </div>
                <div class="modal-body">
                    <form>
                        <div class="form-group">
                            <textarea class="form-control textarea" id="lmessage-text" placeholder="请控制在15字以内。。。"></textarea>
                        </div>
                    </form>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn sure" id="lremarkSubmit">提 交</button>
                    <button type="button" class="btn cancel" data-dismiss="modal">取 消</button>
                </div>
            </div>
        </div>
    </div>

  
   <!--未取货弹框-->
    <div class="modal fade model nopickModel" id="lnopickModel" tabindex="-1" role="dialog">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title" id="exampleModalLabel">未取货处理单</h4>
                </div>
                <div class="modal-body additem additem-store">
                    <h2 class="modal-h2"><a href="javascript:;" class="current ljnoPickBtn">重新选标</a><a href="javascript:;" class="ljnoPickBtn">废标</a></h2>
                    <div class="modal-store-cont ljmodalStorecont">
                        <div class="group">
                        <label class="l-label">赔 偿 费：</label>
                        <div class="l-area">
                            <label class="l-radio">
                                <input type="radio" value="1" name="store-type-lmodal" checked="checked">赔偿物流
                            </label>
                            <label class="l-radio">
                                <input type="radio" value="10" name="store-type-lmodal">赔偿企业
                            </label>
                            <div class="input-group">
                                <div class="input-group-addon">元</div>
                                <input type="text" class="form-control input1" id="lstore-price"  value="0"  placeholder="">
                            </div>
                        </div>
                    </div>
                    <div class="group">
                        <label class="l-label">具体说明：</label>
                        <div class="l-area">
                            <textarea placeholder="" class="textarea textarea3" id="lreaseonStore"></textarea>
                        </div>
                    </div>
                    <h3>重新选标</h3>
                        <table class="table table-hover table-responsive" style="margin:15px 0;">
                        <tr class="thead">
                            <td class="td1">企业编号</td>
                            <td class="td2">企业名称</td>
                            <td class="td3">价格</td>
                            <td class="td3">物流情况</td>
                            <td class="td4">时间</td>
                            <td class="td5">操作</td>
                        </tr>
                        <tbody class="tbody ljtbody ">
                            
                        </tbody>
                    </table>
                    <div class="modal-footer">
                    <button type="button" class="btn sure" id="lremarkfSubmit">提 交</button>
                    <button type="button" class="btn cancel" data-dismiss="modal">取 消</button>
                    </div>
                    </div>
                    <div class="modal-store-cont ljmodalStorecont none">
                        <form class="modal-store-form">
                        <div class="form-group">
                            <label for="recipient-name" class="control-label" style="text-align:right;">废标原因：</label>
                             <input type="text" class="input" id="lcloseReason">
                            <!--<select class="form-control select" id="lcloseReason">
                                <option value="1">原因1</option>
                            </select>-->
                        </div>
                        <div class="group">
                        <label class="l-label">赔 偿 费：</label>
                        <div class="l-area">
                            <label class="l-radio">
                                <input type="radio" value="1" name="store-type-lmodal1" checked="checked">赔偿物流
                            </label>
                            <label class="l-radio">
                                <input type="radio" value="10" name="store-type-lmodal1">赔偿企业
                            </label>
                            <div class="input-group">
                                <div class="input-group-addon">元</div>
                                <input type="text" class="form-control input1" id="lstore-price1"  value="0"  placeholder="">
                            </div>
                        </div>
                      </div>
                        <div class="form-group">
                            <label for="message-text" class="control-label" style="vertical-align: top;text-align:right;">详情描述：</label>
                            <textarea class="form-control textarea" id="lreasonInfo"></textarea>
                        </div>
                    </form>
                     <div class="modal-footer">
                    <button type="button" class="btn sure" id="lfremarkSubmit">提 交</button>
                    <button type="button" class="btn cancel" data-dismiss="modal">取 消</button>
                    </div>
                    </div>
                </div>
            </div>
        </div>
    </div>


    <div class="modal fade model nopickModel selmodel" id="lselModel" tabindex="-1" role="dialog">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title" id="lexampleModalLabel">选标管理</h4>
                </div>
                <div class="modal-body" id="lselModelCon">
                </div>
            </div>
        </div>
    </div>


<script type="text/template" id="lnopicktable">
 <%_.each(obj,function(item,i){%>
    <tr>
        <td><a href=""><%=item._wuliu_no%></a></td>
                                <td><%=item._wuliu_name%></td>
                                <td><%=item._price%></td>
                                <td><%if(item._bid_flag==1){%>
                                    接标
                                    <%}else if(item._bid_flag==10){%>
                                        拒标
                                    <%}else if(item._bid_flag==20){%>
                                      重新取货拒单
                                      <%}%>
                                </td>
                                <td><%=item._operator_time%></td>
                                <td><a href="javascript:;" <%if(item._bid_flag==20){%>class="disable lnopickBid"<%}else{%>class="lnopickBid"<%}%> data-name="lnopickBid" data-itemid="<%=item._bid_wl_id%>" data-mybid="<%=item._bid_id%>">选定</a></td>
                            </tr>
<%})%>
</script>

<script type="text/javascript" src="jqPaginator.js" charset="UTF-8"></script>
<script src="waybill_storelook.js"></script>
<script type="text/template" id="waybillStoreLookTpl">
    <table class="table table-hover table-responsive">
        <tr class="thead">
            <td class="td1">标书编号</td>
            <td class="td2">订单编号</td>
            <td class="td3">中标物流</td>
            <td class="td4">中标价</td>
            <td class="td5">目的地</td>
            <td class="td6">司机名字</td>
            <td class="td6">司机电话</td>
            <td class="td8">操作</td>
        </tr>
        <tr class="trh7">
            <td colspan="9">&nbsp;</td>
        </tr>
        <%_.each(obj,function(item,i){%>
        <tr class="tbody tbody-<%=(i%2 == 0 ? 1:2)%>">
            <td>
                <a href="javascript:;" class="bid-no" data-id="<%=item.bid_id%>"><%=item.bid_no%></a>
            </td>
            <td class="tdtextal"><%=item.order_num%></td>
             <td><%=item.wuliu_name%></td>
            <td><%=item.price%></td>
            <td class="tdtextal"><%=item.end_city_name%></td>
            <td class="tdtextal"><%=item.driver_name%></td>
            <td><%=item.driver_phone%></td>
            <td>
            <a href="#" data-toggle="modal" data-target="#lremarkModel"  data-id="<%=item.id%>">备注</a>
            <a href="#" data-toggle="modal" data-target="#lfpickModel"  data-bid="<%=item.bid_id%>" data-loadno="<%=item.load_no%>">废标</a>
             <%if(item.wuliu_bid_state==10){%>
            <a href="#" data-toggle="modal" data-target="#lnopickModel"  data-bid="<%=item.bid_id%>" data-loadno="<%=item.load_no%>">未取货</a>
             <%}else if(item.wuliu_bid_state==20){%>
            <a href="#" data-toggle="modal" data-target="#lselModel"  data-bid="<%=item.bid_id%>" data-loadno="<%=item.load_no%>">重新选标</a>
                <%}%>
            </td> 
        <%})%>
    </table>
   
</script>
<script type="text/template" id="lselTpl">
    <table class="table table-hover table-responsive">
        <tr class="thead">
            <td class="td1">企业编号</td>
                            <td class="td2">企业名称</td>
                            <td class="td3">价格</td>
                            <td class="td3">物流情况</td>
                            <td class="td4">时间</td>
                            <td class="td5">操作</td>
        </tr>
        <tr class="trh7">
            <td class="" colspan="5">&nbsp;</td>
        </tr>
        <%_.each(obj,function(item,i){%>
        <tbody class="tbody tbody-<%=(i%2 == 0 ? 1:2)%>">
           <tr>
        <td><a href="javascript:;"><%=item._wuliu_no%></a></td>
                                <td><%=item._wuliu_name%></td>
                                <td><%=item._price%></td>
                                <td><%if(item._bid_flag==1){%>
                                    接标
                                    <%}else if(item._bid_flag==10){%>
                                        拒标
                                    <%}else if(item._bid_flag==20){%>
                                      重新取货拒单
                                      <%}%>
                                </td>
                                <td><%=item._operator_time%></td>
                                <td><a href="javascript:;" <%if(item._bid_flag==20){%>class="disable"<%}%> data-name="lselBid" data-itemid="<%=item._bid_wl_id%>" data-mybid="<%=item._bid_id%>">选定</a></td>
                            </tr>
        </tbody>
        <%})%>
    </table>
</script>